package com.java.base.exercise.designmode;

import org.apache.poi.hssf.record.DVALRecord;

/**
 * @Author RenPu
 * @Date 2021/12/8 17:36
 * @Version 1.0
 * @Description:
 **/

public class Student {
    private String name;
    private String age;

    public Student() {
    }

    public static class StudentBuilder{
      Student student=new Student();

      public StudentBuilder baseInfo(String name,String age){
          student.name=name;
          student.age=age;
          return this;
      }


      public StudentBuilder name(String name){
          student.name=name;
          return this;
      }

        public StudentBuilder age(String age){
            student.age=age;
            return this;
        }


        public Student builder(){
          return student;
        }



  }


}
